package UpoopDemo.demo1;

public class test {
    public static void main(String[] args){
        // 创建两个学生
        Student s1 = new Student();
        Student s2 = new Student();
        // 分别给两个学生的属性赋值
        s1.age = 18;
        s1.name = "zhangsan";
        s2.age = 30;
        s2.name = "lisi";
        Student.teacherName = "马牛比";
        // 调用两个学生的show1方法
        s1.show1();
        s2.show1();
        System.out.println(s1.teacherName);
    }
}
